package com.Szjcyh.Until;

import com.limao.Tool.CacheClass;

public class ResultModel {

	public String useraccount;//userAccount
	public String retcode;
	public String messagetype;
	private String retMsg;
	public String uid;
	public ResultDataModel data;
	public ResultMsgModel msg;

	
	public String GetRetMsg()
	{
		int code=CacheClass.getIntValue(retcode);
		switch(code)
		{
		case 0:
			retMsg="";
			break;
		case -1:
			retMsg="未知错误";
			break;		
		case -2:
			retMsg="获得配置文件出错";
			break;				
		case -3:
			retMsg="数据库初始化失败";
			break;
		case -4:
			retMsg="数据库连接超时";
			break;
		case -5:
			retMsg="消息未注册";
			break;
		case -6:
			retMsg="未找到配置文件";
			break;
		case -7:
			retMsg="数据库开启事务失败";
			break;
		case -8:
			retMsg="数据库提交事务失败";
			break;
		case -9:
			retMsg="系统类型不一致";
			break;

			
		case -1000:
			retMsg="与交易服务链接失败或超时，请刷新再试";
			break;
		case -1001:
			retMsg="连接初始化不成功";
			break;
		case -1002:
			retMsg="连接开始不成功";
			break;
		case -1003:
			retMsg="连接销毁不成功";
			break;
		case -2000:
			retMsg="客户端初始化出错";break;
		case -2001:
			retMsg="服务端初始化出错";break;
		case -2002:
			retMsg="用户未登录";break;
		case -2004:
			retMsg="不支持的功能号";break;
		case -2005:
			retMsg="发送数据错误";break;
		case -2006:
			retMsg="登录服务没有启动";break;
		case -3000:
			retMsg="消息解析错误";break;
		case -3001:
			retMsg="数据库执行超时";break;
		case -3002:
			retMsg="数据库执行结果集为空";break;
		case -3003:
			retMsg="数据库缺少字段";break;
		case -3004:
			retMsg="帐号或密码错误";break;
		case -3005:
			retMsg="数据库访问超时";break;
		case -3006:
			retMsg="单据无效";break;
		case -3007:
			retMsg="交易权限受限";break;
		case -3008:
			retMsg="操作类型不存在";break;
		case -3010:
			retMsg="未找到商品信息";break;
		case -3011:
			retMsg="未找到规则组信息";break;
		case -3012:
			retMsg="止损或获利无效";break;
		case -3013:
			retMsg="订单数量不符合合约规范";break;
		case -3014:
			retMsg="市价已变";break;
		case -3015:
			retMsg="超过用户设定范围";break;
		case 3016:
			retMsg="生成单据流水号超时";break;
		case -3017:
			retMsg="超过最大订单持有数量限制";break;
		case -3018:
			retMsg="用户可用资金不足够";break;
		case -3019:
			retMsg="单据已存在";break;
		case -3020:
			retMsg="单据不存在";break;
		case -3021:
			retMsg="市场休市";break;
		case -3022:
			retMsg="商品休市";break;
		case -3023:
			retMsg="未找到支付通道";break;
		case -3024:
			retMsg="非签约、解约时间段，禁止签约、解约";break;
		case -3025:
			retMsg="非入金时间段，禁止入金";break;
		case -3026:
			retMsg="非出金时间段，禁止出金";break;
		case -3027:
			retMsg="支付通道不支持交易端发起此接口";break;
		case -3028:
			retMsg="支付通道不支持签约、解约";break;
		case -3029:
			retMsg="账户已签约，禁止重复签约";break;
		case -3030:
			retMsg="账户已解约，禁止重复解约";break;
		case -3031:
			retMsg="银行账户不正确";break;
		case -3032:
			retMsg="证件号码不正确";break;
		case -3033:
			retMsg="资金密码不正确";break;
		case -3034:
			retMsg="账户不符合签约解约条件，请检查账户资金，单据信息";break;
		case -3035:
			retMsg="字段类型转化出错";break;
		case -3036:
			retMsg="TableLog更新失败";break;
		case -3037:
			retMsg="金额为零，不可操作";//出入金金额溢出 
			break;
		case -3038:
			retMsg="账户未签约，禁止出入金";break;
		case -3039:
			retMsg="出入金金额超过每日出金限制或小于每笔出金限制";break;
		case -3041:
			retMsg="出入金状态不符合规范";break;
		case -3042:
			retMsg="出入金单据已被审核";break;
		case -3043:
			retMsg="未返回相应的银行流水号";break;
		case -3044:
			retMsg="限价无效";break;
		case -3045:
			retMsg="效力类型不存在";break;
		case -3046:
			retMsg="未找到相应交易端流水号出入金单据信息";break;
		case -3047:
			retMsg="未找到相应银行流水号出入金单据信息";break;
		case -3048:
			retMsg="银行或出入金服务流水号重复";break;
		case -3049:
			retMsg="无效的交易日";break;
		case -3050:
			retMsg="改单价格小于冻结点差";break;
		case -3051:
			retMsg="支付通道不支持银行端发起此接口";break;
		case -3052:
			retMsg="支付通道不支持出入金类型";break;
		case -3053:
			retMsg="支付通道商务号不存在";break;
		case -3054:
			retMsg="席位号不存在";break;
		case -3055:
			retMsg="禁止交易";break;
		case -3056:
			retMsg="禁止买入";break;
		case -3057:
			retMsg="禁止卖出";break;
		case -3058:
			retMsg="禁止开仓";break;
		case -3059:
			retMsg="重置密码失败";break;
		case -3060:
			retMsg="未找到交易员信息";break;
		case -3061:
			retMsg="交易员登录密码错误";break;
		case -3062:
			retMsg="管理员密码错误";break;
		case -3063:
			retMsg="未找到管理员信息";break;
		case -3064:
			retMsg="不支持基金";break;
		case -3065:
			retMsg="没有找到基金账户";break;
		case -3066:
			retMsg="转账对方没有支付通道";break;
		case -3088:
			retMsg="用户有订单持有不允许出金";break;
		case -4036:
			retMsg="结算输入参数无效";break;
		case -4037:
			retMsg="市场开市状态，请先收市再做结算";break;
		case -4038:
			retMsg="价格超过涨跌幅限制";break;
		case -4039:
			retMsg="未找到用户商品信息";break;
		case -4040:
			retMsg="帐号或密码错误";break;
		case -4041:
			retMsg="没有找到公告";break;
		case -4042:
			retMsg="账户类型不正确";break;
		case -4043:
			retMsg="单边账不存在或已处理";break;
		case -4044:
			retMsg="权限不够";break;
		case -4046:
			retMsg="对手信息转化出错";break;
		case -4047:
			retMsg="没找到相应的特别会员信息";break;
		case -4048:
			retMsg="计算错误";break;
		case -4049:
			retMsg="未找到用户订单";break;
		case -4050:
			retMsg="没有足够的对手订单下单";break;
		case -4051:
			retMsg="用户未激活，禁止此项操作";break;
		case -4052:
			retMsg="用户已注销";break;
		case -4053:
			retMsg="公告类型不正确";break;
		case -4054:
			retMsg="受限状态下不能超过受限净头寸";break;
		case -4055:
			retMsg="自动结算模式不能执行手工结算";break;
		case -4056:
			retMsg="市场开市状态，禁止加载";break;
		case -4057:
			retMsg="会员状态受限或冻结，禁止下单";break;
		case -4058:
			retMsg="系统仅支持买交割";break;
		case -4059:
			retMsg="账户已经绑定了微信号";break;
		case -4060:
			retMsg="账户没有需要数量的代金券 ";break;
		case -4061:
			retMsg="账户代金券数量不足够开仓 ";break;
		case -4062:
			retMsg="商品头寸已经存在";break;
		case -4063:
			retMsg="不支持此终端类型登录";break;
		case -4064:
			retMsg="手机号已经注册";break;
		case -4065:
			retMsg="节假日禁止签约，解约，出入金";break;
		case -4066:
			retMsg="未找到居间商";break;
		case -4067:
			retMsg="证件号码已经注册";break;
		case -4068:
			retMsg="用户已经注册";break;
		case -4069:
			retMsg="手机号码不能为空";break;
		case -4070:
			retMsg="证件号码不能为空";break;
		case -4071:
			retMsg="用户账号不能为空";break;
		case -4072:
			retMsg="用户名称不能为空";break;
		case -4073:
			retMsg="登录密码不能为空";break;
		case -4074:
			retMsg="不支持PC端注册";break;
		case -4075:
			retMsg="结算失败";break;
		case -4076:
			retMsg="该客户类型不允许转经济人";break;
		case -4077:
			retMsg="客户转经济人已申请";break;
		case -4078:
			retMsg="客户转经济人申请失败";break;
		case -4079:
			retMsg="未找到经济人";break;
		case -4082:
			retMsg="有资金不能解绑";break;

		case -4080:
			retMsg="非默认主支付通道，不提供此业务支持";break;
		case -4091:
			retMsg="会员可下单瓶数出错";break;
		case -4092:
			retMsg="找不到所属会员用户记录";break;
		case -4093:
			retMsg="手机号码解密失败";break;
		case -4094:
			retMsg="红包信息有误，请重新核对后发送";break;
		case -4095:
			retMsg="相同红包序列号";break;
		case -4096:
			retMsg="未找到发送红包信息";break;
		case -4097:
			retMsg="红包已被抢完";break;
		case -4098:
			retMsg="超过当日最大可发金额";break;
		case -4099:
			retMsg="红包已领取";break;
		case -4101:
			retMsg="红包已过期";break;
		case -4102:
			retMsg="该卡已绑定;break;不能解除绑定";break;
		case 12:
			retMsg="请输入帐号";break;
		case 13:
			retMsg="请输入密码";break;
		case 1:
			retMsg="您当前的会话已超时，请退出应用，重新登录进入。";break; //cookie中无sessionid
		case 2:
			retMsg="您当前的会话已超时，请退出应用，重新登录进入。";//redis中无session记录
			break; 
		case 3:
			retMsg="url中无func_id";break;
		case 4:
			retMsg="错误的MSG_TYPE";break;
		case 5:
			retMsg="转发失败";break;
		case 6:
			retMsg="protobuf解析失败";break;
		case 7:
			retMsg="redis 链接错误";break;
		case 8:
			retMsg="redis session延期失败";break;
		case 9:
			retMsg="redis 执行命令失败";break;
		case 10:
			retMsg="url中无用户code";break;
		case 11:
			retMsg="url中无wxdomain名";break;
		case 14:
			retMsg=" 把session放到redis中失败";break;
		case 15:
			retMsg="没有可用的redis server";break;
		case 16:
			retMsg="curl初始化失败";break;
		case 17:
			retMsg="curl执行http请求失败";break;
		case 18:
			retMsg="curl返回失败";break;
		case 19:
			retMsg="redis中无wxdomain";break;
		case 20:
			retMsg="redis中wxdomain解析错误";break;
		case 21:
			retMsg="微信用户不存在";break;
		case 22:
			retMsg="url中无用户微信ID";break;
		case 23:
			retMsg="redis中取会员token失败";break;
		case 24:
			retMsg="redis中取的token无应有字段";break;
		case 25:
			retMsg="redis中取的token无效";break;
		case 26:
			retMsg="cookie中无用户wxid";break;
		case 27:
			retMsg="用户请求传入的code无效";break;
		case 28:
			retMsg="url中缺少必要参数";break;
		case 29:
			retMsg="暂不支持的功能";break;
		case 30:
			retMsg="未知错误";break;
		case 31:
			retMsg="图片验证码验证失败";break;
		case 32:
			retMsg="从redis提取图片验证码错误";break;
		case 33:
			retMsg="发送短信失败";break;
		case 34:
			retMsg="短信验证码验证失败";break;
		case 35:
			retMsg="从redis提取短信验证码错误";break;
		case 36:
			retMsg="json串解析失败";break;
		case 37:
			retMsg="商品种类未知";break;
		case 38:
			retMsg=" 非法的数据";break;
		case 39:
			retMsg="时间格式错误";break;
		case 40:
			retMsg="短信验证码失效！";break;
		case 41:
			retMsg="没有关注公众号";break;
		case 42:
			retMsg="非法请求";break;//"http请求 head中没X-Requested-With"
		case 43:
			retMsg="验证码失效了";break;//redis无数据
		case 44:
			retMsg="验证码失效了";break;//redis中无临时session
		}
		return retMsg;
	}
}
